package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.HireRegionMapper;
import com.ruoyi.system.domain.HireRegion;
import com.ruoyi.system.service.IHireRegionService;
import com.ruoyi.common.core.text.Convert;

/**
 * 地址Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-04-26
 */
@Service
public class HireRegionServiceImpl implements IHireRegionService 
{
    @Autowired
    private HireRegionMapper hireRegionMapper;

    /**
     * 查询地址
     * 
     * @param regionId 地址主键
     * @return 地址
     */
    @Override
    public HireRegion selectHireRegionByRegionId(Long regionId)
    {
        return hireRegionMapper.selectHireRegionByRegionId(regionId);
    }

    /**
     * 查询地址列表
     * 
     * @param hireRegion 地址
     * @return 地址
     */
    @Override
    public List<HireRegion> selectHireRegionList(HireRegion hireRegion)
    {
        return hireRegionMapper.selectHireRegionList(hireRegion);
    }

    /**
     * 新增地址
     * 
     * @param hireRegion 地址
     * @return 结果
     */
    @Override
    public int insertHireRegion(HireRegion hireRegion)
    {
        return hireRegionMapper.insertHireRegion(hireRegion);
    }

    /**
     * 修改地址
     * 
     * @param hireRegion 地址
     * @return 结果
     */
    @Override
    public int updateHireRegion(HireRegion hireRegion)
    {
        return hireRegionMapper.updateHireRegion(hireRegion);
    }

    /**
     * 批量删除地址
     * 
     * @param regionIds 需要删除的地址主键
     * @return 结果
     */
    @Override
    public int deleteHireRegionByRegionIds(String regionIds)
    {
        return hireRegionMapper.deleteHireRegionByRegionIds(Convert.toStrArray(regionIds));
    }

    /**
     * 删除地址信息
     * 
     * @param regionId 地址主键
     * @return 结果
     */
    @Override
    public int deleteHireRegionByRegionId(Long regionId)
    {
        return hireRegionMapper.deleteHireRegionByRegionId(regionId);
    }
}
